package org.pas.fb2.tag;

public class PoemTag extends Tag {

    static final String NAME = "poem";

    PoemTag(Tag parent) {
        super(parent);
    }

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public Tag onChild(String name) {
        if (StanzaTag.NAME.equals(name)) {
            return new StanzaTag(this);
        }
        return super.onChild(name);
    }

}
